//
//  MCEmptyView.m
//  ZXZX
//
//  Created by menhao on 2018/9/25.
//  Copyright © 2018年 TLYL01. All rights reserved.
//

#import "MCEmptyView.h"

@implementation MCEmptyView

+ (instancetype)diyEmptyView{
    
    return [MCEmptyView emptyViewWithImageStr:@"noData_network"
                                       titleStr:@""
                                      detailStr:@""];
}

+ (instancetype)diyNoNetworkViewWithTarget:(id)target action:(SEL)action{
    
    return [MCEmptyView emptyActionViewWithImageStr:@"badNet_network"
                                             titleStr:@""
                                            detailStr:@""
                                          btnTitleStr:@"重新加载"
                                               target:target
                                               action:action];
}
+ (instancetype)diyErrorNetworkViewWithTarget:(id)target action:(SEL)action{
    
    return [MCEmptyView emptyActionViewWithImageStr:@"error_network"
                                           titleStr:@""
                                          detailStr:@""
                                        btnTitleStr:@"重新加载"
                                             target:target
                                             action:action];
}
- (void)prepare{
    [super prepare];
    self.autoShowEmptyView = NO;
    self.titleLabTextColor = RGB(180, 30, 50);
    self.titleLabFont = [UIFont systemFontOfSize:18];
    self.detailLabTextColor = RGB(80, 80, 80);
    self.actionBtnBackGroundColor = MC_THEME_COLOR;
    self.actionBtnTitleColor = [UIColor whiteColor];
    
}

@end
